checkbutton: Don't reorder non-existent indicator widget
authorTimm Bäder <mail@baedert.org>
Mon, 26 Feb 2018 17:06:04 +0000 (18:06 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 26 Feb 2018 17:23:20 +0000 (18:23 +0100)
gtk/gtkcheckbutton.c

index c15881eb7e3d00e8cc26f4e8f1c296bfe8da537b..d5d1dcdd0e70a736c736bd9405cba4fa8991eadc 100644 (file)
@@ -279,6 +279,9 @@ gtk_check_button_direction_changed (GtkWidget        *widget,
 {
   GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (GTK_CHECK_BUTTON (widget));
 
+  if (!priv->indicator_widget)
+    return;
+
   if (previous_direction == GTK_TEXT_DIR_LTR)
     {
       /* Now RTL -> Move the indicator to the right */